package com.yc.hr.util;

import com.yc.hr.biz.BizException;

public class CheckUtils {
	
	/**
	 * 检查测试结果, 如果bool为 true, 测抛出异常
	 * @param bool
	 * @param msg
	 * @throws BizException
	 */
	public static void check(boolean bool, String msg) throws BizException{
		if(bool) {
			throw new BizException(msg);
		}
	}

}
